package cn.com.dycc.party_org.team.param;

import java.io.Serializable;
import java.sql.Timestamp;

import cn.com.dycc.common.page.TablePublicAttri;


public class AddTeamParam extends TablePublicAttri implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3686856350163779894L;
	
	private String dept_id;				//党组ID
	private String user_id;				//党员ID
	private String group_flag;			//1党组班子成员   2党组成员 
	private Timestamp create_date;		//创建时间
	private Integer order_no;			//排序
	
	public AddTeamParam(){}

	

	

	public AddTeamParam(String dept_id, String user_id, String group_flag, Timestamp create_date, Integer order_no) {
		super();
		this.dept_id = dept_id;
		this.user_id = user_id;
		this.group_flag = group_flag;
		this.create_date = create_date;
		this.order_no = order_no;
	}


	

	public String getDept_id() {
		return dept_id;
	}





	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}





	public String getUser_id() {
		return user_id;
	}





	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}





	public String getGroup_flag() {
		return group_flag;
	}





	public void setGroup_flag(String group_flag) {
		this.group_flag = group_flag;
	}





	public Timestamp getCreate_date() {
		return create_date;
	}





	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}





	public Integer getOrder_no() {
		return order_no;
	}





	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}


	


	@Override
	public String toString() {
		return "AddTeamParam [dept_id=" + dept_id + ", user_id=" + user_id + ", group_flag=" + group_flag
				+ ", create_date=" + create_date + ", order_no=" + order_no + "]";
	}





	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dept_id == null) ? 0 : dept_id.hashCode());
		result = prime * result + ((user_id == null) ? 0 : user_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AddTeamParam other = (AddTeamParam) obj;
		if (dept_id == null) {
			if (other.dept_id != null)
				return false;
		} else if (!dept_id.equals(other.dept_id))
			return false;
		if (user_id == null) {
			if (other.user_id != null)
				return false;
		} else if (!user_id.equals(other.user_id))
			return false;
		return true;
	}
	
	

}
